home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / bufstuff.zip / BUFSTUFF.DOC next >
Text File  |  1991-10-09  |  7KB  |  144 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                               Buffer Stuffer 1.2
  7.  
  8.             Have you ever wished that your batch files (like
  9.         AUTOEXEC.BAT) could do more with your programs than simply
  10.         start them running. For example, have you wished that they
  11.         could get you past the title page screens (the good old
  12.         "Press ENTER to continue." screen) and get you to the
  13.         menu option you usually use. Buffer Stuffer allows you to do
  14.         this. When a batch file calls Buffer Stuffer from DOS with a
  15.         command line string, that string is stuffed into the
  16.         keyboard buffer, then the Buffer Stuffer program ends.
  17.         The next program to run can input this string of keys as if
  18.         it were typed from the keyboard.
  19.             For example, suppose that you have a word processor with
  20.         a file name WP.EXE. Suppose that every time you run this
  21.         program, you must press the ENTER key to clear the title
  22.         page. You don't like the default screen colors, so you always
  23.         press F3 to choose the "Change screen colors" menu, then type
  24.         "F" and then 15 and press ENTER to change the foreground
  25.         color to 15 (bright white). Then you press Esc to return to
  26.         the main menu. With Buffer Stuffer, you could create a GO.BAT
  27.         file that does all this. The batch file would simply have the
  28.         commands
  29.         \BUFSTUFF ~(ENTER)~(F3)F15~(ENTER)~(ESC)
  30.         WP
  31.             This batch file causes Buffer Stuffer to stuff the desired
  32.         keys into the buffer, then runs the WP program. The keys are
  33.         not taken off the buffer until the WP program is running.
  34.             This example assumes that the BUFSTUFF.EXE file is in
  35.         your root directory. This is a very good place to put it, so
  36.         it can be easily accessed from any directory. An alternative
  37.         is to put it in a directory that is in your PATH.
  38.             Notice the words and abbreviations enclosed in
  39.         parentheses preceded by the ~ symbol. This is the method used
  40.         to indicate special characters that should not be output
  41.         literally. Anything preceded by ~( and followed by ) will be
  42.         interpreted as a single special character. For example,
  43.         ~(ENTER) or ~(RETURN) will be interpreted as a carriage
  44.         return (CHR$(13)). There can be only one character within
  45.         each set of parentheses. For example, to write two returns,
  46.         you must write ~(RETURN)~(RETURN), not ~(RETURNRETURN). Some
  47.         other special words are UP, DOWN, RIGHT, LEFT (representing
  48.         the cursor keys), ESC, PGUP, PGDN, HOME, END, TAB, and F1
  49.         through F10. You can precede the F1 through F10 with an S
  50.         for shift, a C for Ctrl, or an A for Alt, as in SF1 or AF10.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.             The F1 through F10 are the only keys that respond to
  57.         being preceded by an S, since you can put in other
  58.         capitalized letters directly. However, the letters A through
  59.         Z do respond to being preceded by A or C within the ~(), such
  60.         as ~(CC) for Ctrl-C or ~(AH) for Alt-H. The characters 0
  61.         through 9 also respond to being preceded by an A, allowing
  62.         you to input the characters Alt-0 through Alt-9. You can also
  63.         proceed HOME, END, PGDN, PGUP, RIGHT, and LEFT with C (such
  64.         as CHOME) to produce keys such as Ctrl-Home. Incidentally,
  65.         although normal characters (those not enclosed within
  66.         parentheses preceded by ~) are case-sensitive, the special
  67.         characters within the parentheses are case-insensitive. This
  68.         means that it does not matter if you capitalize the letters
  69.         within the parentheses.
  70.             One last option is to put a pure number within the
  71.         parentheses. This will pack the ASCII character with that
  72.         value into the buffer. For example, ~(13) would be the same
  73.         as ~(return), since the ASCII value of a carriage return is
  74.         13. Another example would be that ~(7) would sound a beep,
  75.         since CHR$(7) is a beep.
  76.             There is one restriction on the string that Buffer Stuffer
  77.         can stuff into the buffer. It cannot be longer than 15
  78.         characters. If you try to input a string of more than 15
  79.         characters, Buffer Stuffer will abort with an error message.
  80.         Note that this refers to 15 characters in the string that
  81.         Buffer Stuffer packs into the buffer, not the string you put
  82.         in the command line. For example, ~(return) and ~(SF1) each
  83.         counts as one character, not as nine or six. Also, the name
  84.         BUFSTUFF and anything that precedes it, such as a path
  85.         designation, does not count as part of the 15 characters. The
  86.         space between BUFSTUFF and the start of the command string
  87.         does not count as a character either.
  88.             One other minor problem you might have with Buffer
  89.         Stuffer is inputting spaces in the command line. This is no
  90.         problem if you want the spaces to be in the middle of the
  91.         string of characters you want Buffer Stuffer to stuff.
  92.         However, a space will not register if it is the first or last
  93.         character in the command line string. The simplest way to
  94.         avoid this problem is to use ~(32) to represent a space in
  95.         your string, since 32 is the ASCII value of a space.
  96.  
  97.         Compatibility
  98.  
  99.             Buffer Stuffer is compatible with most programs. A few
  100.         programs, however, may not work with Buffer Stuffer. This is
  101.         generally because they read characters directly from the
  102.         keyboard, rather than the buffer.
  103.  
  104.  
  105.  
  106.  
  107.  
  108.         Installation
  109.  
  110.             I suggest that you put BUFSTUFF.EXE in your root
  111.         directory. That way, you can have a batch file in any
  112.         directory call it easily with the command \BUFSTUFF. Since
  113.         you will probably be having batch files call it from many
  114.         directories, that is easier than always having the batch
  115.         files need a command like \DOS\BUSTUFF. The alternative is to
  116.         have BUFSTUFF.EXE in a directory that is in your PATH
  117.         statement, but that would slow down operations slightly while
  118.         your computer searches for BUFSTUFF.EXE.
  119.  
  120.         Paying for Buffer Stuffer
  121.  
  122.             Buffer Stuffer is a shareware program. If you like it, please
  123.         pay for it by sending $5.00 to:
  124.  
  125.                               Leithauser Research
  126.                              4649 Van Kleeck Drive
  127.                            New Smyrna Beach FL 32169
  128.  
  129.             In addition to a clear conscience, you will receive a
  130.         disk containing other shareware and freeware programs by
  131.         Leithauser Research. You are, of course, under no obligation
  132.         to register these programs unless you also decide to keep
  133.         using them.
  134.  
  135.         Custom Programming
  136.  
  137.             The primary function of Leithauser Research is custom
  138.         computer programming. If you need an unusual program that you
  139.         cannot find commercially, contact us at the above address for
  140.         a price quote. Our rates are very reasonable. You acquire all
  141.         rights to the programs you hire us to write, so you can
  142.         market these programs yourself if you like.
  143.  
  144.